const KoaRoter = require("@koa/router");

const { verifyAuth } = require("../middleware/login.middleware");
const commentController = require("../controller/comment.controller");

const commentRouter = new KoaRoter({ prefix: "/comment" });

commentRouter.post("/", verifyAuth, commentController.create);
// 回复评论
commentRouter.post("/reply", verifyAuth, commentController.reply);

module.exports = commentRouter;
